package com.YxyBackMange.Entity.Ware;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类WareGoodsInfo
 * 数据表ware_tb_goods_info
 * 商品信息表
 * 2017-12-3 3:47:31
 * @author Administrator
 *
 */
@Table(name = "ware_tb_goods_info")
public class WareGoodsInfo  implements Serializable {

		//主键
	@Id
	@GeneratedValue(generator = "JDBC")


	private Integer id;
		//商品名称


	private String goodsName;
		//原价格


	private Double oldPrice;
		//新价格


	private Double nowPrice;
		//库存


	private Integer stock;
		//销量


	private Integer sales;
		//上架时间


	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
		//预览图


	private String previewImgAddress;
		//简介描述


	private String goodsDescribe;
		//禁用


	private Integer disabled;
		//首拼查询


	private String goodsPinyin;
		//是否为推荐商品


	private Integer isNominate;
		//品牌编号


	private Integer goodsBrandId;
		//商品标签编号


	private Integer goodsLabel;
		//商品详情外键


	private Integer detailsId;
		//0为非预约类型，1为预约类型商品


	private Integer isAppointment;


	public WareGoodsInfo(){

	}
	public WareGoodsInfo(Integer id){
		this.id=id;
	}
	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setGoodsName(String goodsName){
		this.goodsName=goodsName;
	}

	public String getGoodsName(){
		return this.goodsName;
	}
	public void setOldPrice(Double oldPrice){
		this.oldPrice=oldPrice;
	}

	public Double getOldPrice(){
		return this.oldPrice;
	}
	public void setNowPrice(Double nowPrice){
		this.nowPrice=nowPrice;
	}

	public Double getNowPrice(){
		return this.nowPrice;
	}
	public void setStock(Integer stock){
		this.stock=stock;
	}

	public Integer getStock(){
		return this.stock;
	}
	public void setSales(Integer sales){
		this.sales=sales;
	}

	public Integer getSales(){
		return this.sales;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}

	public Date getCreateTime(){
		return this.createTime;
	}
	public void setPreviewImgAddress(String previewImgAddress){
		this.previewImgAddress=previewImgAddress;
	}

	public String getPreviewImgAddress(){
		return this.previewImgAddress;
	}
	public void setGoodsDescribe(String goodsDescribe){
		this.goodsDescribe=goodsDescribe;
	}

	public String getGoodsDescribe(){
		return this.goodsDescribe;
	}
	public void setDisabled(Integer disabled){
		this.disabled=disabled;
	}

	public Integer getDisabled(){
		return this.disabled;
	}
	public void setGoodsPinyin(String goodsPinyin){
		this.goodsPinyin=goodsPinyin;
	}

	public String getGoodsPinyin(){
		return this.goodsPinyin;
	}
	public void setIsNominate(Integer isNominate){
		this.isNominate=isNominate;
	}

	public Integer getIsNominate(){
		return this.isNominate;
	}
	public void setGoodsBrandId(Integer goodsBrandId){
		this.goodsBrandId=goodsBrandId;
	}

	public Integer getGoodsBrandId(){
		return this.goodsBrandId;
	}
	public void setGoodsLabel(Integer goodsLabel){
		this.goodsLabel=goodsLabel;
	}

	public Integer getGoodsLabel(){
		return this.goodsLabel;
	}
	public void setDetailsId(Integer detailsId){
		this.detailsId=detailsId;
	}

	public Integer getDetailsId(){
		return this.detailsId;
	}
	public void setIsAppointment(Integer isAppointment){
		this.isAppointment=isAppointment;
	}

	public Integer getIsAppointment(){
		return this.isAppointment;
	}


}
